<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
      body, html,#allmap {
        width: 100%;
        height: 100%;
        overflow: hidden;
        margin:0;
        font-family:"微软雅黑";
      }
    </style>
    <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=oyva8hEbGyySeHenlvpaPYgbblTWU2mA"></script>
    <title>地图展示</title>
  </head>
  <body>
    <div id="allmap"></div>
  </body>
</html>
<script type="text/javascript">
  // 创建Map实例
  var map = new BMapGL.Map("allmap");

  // 初始化地图,设置中心点坐标和地图级别
  map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 1); 
  
  // 开启鼠标滚轮缩放
  map.enableScrollWheelZoom(true);     
</script>
